<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;
use App\Model\AuthRole;
use Hyperf\Database\Model\SoftDeletes;

class DataOrder extends Model
{
    use SoftDeletes;


    protected ?string $table = 'data_order';




    public function dataUser()
    {
        return $this->hasOne(DataUser::class, 'id', 'data_user_id')->withTrashed()->select('id','username','real_name');
    }

}
